package com.idrem.data.model;

public class User {
	
	private String username;
	private String password;
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	
	public User(String usr, String pwd) {
		this.username = usr;
		this.password = pwd;
	}
	
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	@Override
	public String toString() {
		StringBuffer xml = new StringBuffer();
		if (username != null && password != null) {
			xml.append("<login>")
			.append("<username>" + username + "</username>")
			.append("<password>" + password + "</password>");
			xml.append("</login>");
			
		}
		return xml.toString();
	}
	
	

}
